package com.company.oa.workflow.dto.leave;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class LeaveDTO {
    
    private Long id;
    
    @NotNull(message = "请假类型不能为空")
    private Integer leaveType;
    
    @NotNull(message = "开始时间不能为空")
    private Date startTime;
    
    @NotNull(message = "结束时间不能为空")
    private Date endTime;
    
    @NotNull(message = "请假天数不能为空")
    private BigDecimal days;
    
    @NotBlank(message = "请假原因不能为空")
    private String reason;
    
    private String attachmentPath;
    
    private Integer status;
} 